package gui;

import java.awt.Font;

import javax.swing.JLabel;

public class BigLabel extends JLabel {
	private static final long serialVersionUID = -6578976505246160092L;
	private Font f;
	
	public BigLabel(String campo, String valor, int horizontalAlignment){
		f = new Font("SansSerif", Font.BOLD, 20);
		setFont(f);
		setHorizontalAlignment(horizontalAlignment);
		if(valor.equals("0"))
			setText(campo + ": N/D");
		else
			setText(campo + ": " + valor);
	}
	
	public BigLabel(String campo, String valor, String unidad, int horizontalAlignment){
		this(campo, valor, horizontalAlignment);
		setText(getText() + " " + unidad);
	}
	
}
